//
//  TitleAndImageVCell.m
//  WE
//
//  Created by iMacOne on 15/11/24.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "TitleAndImageVCell.h"
#import "Size.h"
#import "ToolUtil.h"
@interface TitleAndImageVCell ()
@property (nonatomic, strong)UIImageView * iconImageV;
@property (nonatomic, strong)UILabel * aLbl;


@end
@implementation TitleAndImageVCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.iconImageV = [[UIImageView alloc] initWithFrame:CGRectMake(20, 5, 30, 30)];
        _iconImageV.backgroundColor = DEBUG_CLOLR;
        
        self.aLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_iconImageV.frame) + 3, 10, [ToolUtil autoWidth:@"常见疾病及问题" width:0 height:20 num:12], 20)];
        _aLbl.font = FONT(12);
        _aLbl.text = @"常见疾病及问题";
        
        [self.contentView addSubview:_aLbl];
        [self.contentView addSubview:_iconImageV];
        
    }
    return self;
}

@end
